package com.corpgovernment.organization.entity.db;

import com.corpgovernment.common.entity.db.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Table;


/**
 *
 **/
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "mb_user_device")
public class MbUserDevice extends BaseEntity {


    /**
     * uid
     **/
    private String uid;

    private String uuid;

    /**
     * 名字
     **/
    private String userName;

    /**
     * 手机号
     **/
    private String phone;

    /**
     * 来源
     **/
    private String resource;

    /**
     * 系统版本号
     **/
    private String osVersion;

    /**
     * 设备号
     **/
    private String deviceId;

    /**
     * app包名
     */
    private String packageName;

    /**
     * app应用id
     */
    private Integer appId;

    public MbUserDevice() {
    }

    public MbUserDevice(String uid, String uuid, String deviceId) {
        this.uid = uid;
        this.uuid = uuid;
        this.deviceId = deviceId;
    }

    public MbUserDevice(String uid, String uuid, String deviceId, Integer appId, String osVersion) {
        this.uid = uid;
        this.uuid = uuid;
        this.deviceId = deviceId;
        this.appId = appId;
        this.osVersion = osVersion;
    }
}
